package com.yuyue.springFramework.note08.entity;

import org.springframework.beans.factory.InitializingBean;

/**
 * 初始化方法实现类
 */
public class MyInitBean implements InitializingBean {
    @Override
    public void afterPropertiesSet() throws Exception {
        System.out.println("所有属性设置完成后初始化方法");
    }

    public void init(){
        System.out.println("初始化方法");
    }
}
